home *** CD-ROM | disk | FTP | other *** search
- .geometry "version 0.1";
- v1 = .free(-0.781122, 0.015048, "1");
- v2 = .free(-0.064295, 0.502052, "2");
- v3 = .free(0.307798, -0.400821, "3");
- l1 = .l.vv(v1, v2);
- l2 = .l.vv(v2, v3);
- l3 = .l.vv(v3, v1);
- third = .len.f(0.333333333);
- a = .a.vvv(v1, v2, v3);
- a3 = .len.times(a,third);
- vv1 = .v.avv(a3, v1, v2, .invisible);
- ww1 = .v.avv(a3, vv1, v2, .invisible);
- l4 = .l.vv(v2, ww1, .invisible, .ray12);
- l5 = .l.vv(v2, vv1, .invisible, .ray12);
- b = .a.vvv(v2, v3, v1);
- b3 = .len.times(b,third);
- vv2 = .v.avv(b3, v2, v3, .invisible);
- ww2 = .v.avv(b3, vv2, v3, .invisible);
- l6 = .l.vv(v3, ww2, .invisible, .ray12);
- l7 = .l.vv(v3, vv2, .invisible, .ray12);
- c = .a.vvv(v3, v1, v2);
- c3 = .len.times(c,third);
- vv3 = .v.avv(c3, v3, v1, .invisible);
- ww3 = .v.avv(c3, vv3, v1, .invisible);
- l8 = .l.vv(v1, ww3, .invisible, .ray12);
- l9 = .l.vv(v1, vv3, .invisible, .ray12);
- v4 = .v.ll(l8, l5);
- v5 = .v.ll(l6, l9);
- v6 = .v.ll(l7, l4);
- l10 = .l.vv(v1, v5, .red);
- l11 = .l.vv(v1, v4, .red);
- l12 = .l.vv(v4, v2, .red);
- l13 = .l.vv(v2, v6, .red);
- l14 = .l.vv(v6, v3, .red);
- l15 = .l.vv(v3, v5, .red);
- l16 = .l.vv(v5, v6, .yellow);
- l17 = .l.vv(v6, v4, .yellow);
- l18 = .l.vv(v4, v5, .yellow);
- .text("Morley's Theorem:");
- .text("");
- .text("Given an arbitrary triangle 123, construct the angle triasectors");
- .text("at each vertex. The intersections of the trisectors as shown in");
- .text("the figure form an equilateral triangle. Any of the points 1, 2");
- .text("or 3 can be moved to try different triangles.");
-